package com.clw.classfile.constantpool.info;

/**
 * Created by chengliwei on 2018/11/12.
 */
public class ConstantUtf8 implements ConstantInfo{

    public static final byte TAG = 1; // value = 1
    private short length; // utf-8编码的字符串占用的字节数
    private String bytes; // 长度为length的utf-8编码的字符串

    public ConstantUtf8(short length, String bytes){
        this.length = length;
        this.bytes = bytes;
    }

    public String getBytes() {
        return bytes;
    }

    public void setBytes(String bytes) {
        this.bytes = bytes;
    }
}
